package com.aegean.onlinebook.service.action;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.aegean.onlinebook.service.business.ServiceBusiness;
import com.opensymphony.xwork2.ActionSupport;
@Controller("ValidSmallType")
@Scope("prototype")
public class ValidSmallTypeAction extends ActionSupport {
	@Resource
	ServiceBusiness business;
	private boolean success;
    private String smallType;
	public String getBigType() {
		return smallType;
	}

	public void setBigType(String bigType) {
		this.smallType = smallType;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	@Override
	public String execute() throws Exception {
		success=business.searchSmallType(smallType);
		return SUCCESS;
	}
    
}
